<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Vue Project Guide setup</title>
</head>
<body>
  <!-- 将库添加到这里 -->
  <script src="https://unpkg.com/vue/dist/vue.js"></script>

  <div id="root">
    <p>Is this an Hello World?</p>
    <p>{{ message }}</p>
    <input type="text" v-model='message'>
  </div>

  <script>
    console.log('Yes! We are using Vue version ', Vue.version)
    // 创建Vue实例
    var app = new Vue({
      el: '#root',
      data() {
        return {
          message: 'Hello Vue.js!'
        }
      }
    })
    // 添加Vue实例到页面中
    app.$mount('#root')
  </script>
</body>
</html>